package com.danico.danicoproject.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.danico.danicoproject.DanicoProject;

public class MenuPrincipal implements Screen {

	BitmapFont font;
	SpriteBatch batch;
	DanicoProject game;
	String text;
	
	public MenuPrincipal(DanicoProject gamegdx)
	{
		this.game = gamegdx;
		font = new BitmapFont();
		batch = new SpriteBatch();
		text = "Menu principal";
	}
	
	@Override
	public void render(float delta) {
		Gdx.gl.glClearColor(0, 0, 0, 1);
		Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
		
		batch.begin();
		String text = "Jouer";
		font.draw(batch, text, Gdx.graphics.getWidth()/2 - font.getBounds(text).width/2, Gdx.graphics.getHeight()/2 + font.getBounds(text).height);
		font.draw(batch, "FPS: " + Gdx.graphics.getFramesPerSecond(), 5, Gdx.graphics.getHeight()-5);
		batch.end();
		}

	@Override
	public void resize(int width, int height) {
	}

	@Override
	public void show() {
	}

	@Override
	public void hide() {
		
	}

	@Override
	public void pause() {
		
	}

	@Override
	public void resume() {
		
	}

	@Override
	public void dispose() {
		font.dispose();
		batch.dispose();
	}

}
